<?php
/**
 * Created by PhpStorm.
 * User: ningtaoli
 * Date: 2018/4/24
 * Time: 下午3:55
 */

namespace app\home\controller;


use think\Controller;

class Erweima extends Controller
{

    public function index($id)
    {

       $url = db('url')->where('status = 1')->find();
       $urldata = $url['url'].'/'.'R/'.$id;
       header("Location:http://{$urldata}");
       die;
    }

}